#ifndef GRAPHWIDGET_H
#define GRAPHWIDGET_H

#include <QtGui/QGraphicsView>
#include <QHash>


/**
 * @author CARON LOPEZ
 * @brief Base utilisée pour la PlateauRisQGraphics
 *
 */
class GraphWidget : public QGraphicsView
{
    Q_OBJECT

public:
    GraphWidget(QWidget *parent = 0);

    void itemMoved();
    void mousePressEvent(QMouseEvent* ev);

protected:

    /**
     * @brief Charge le fichier images passé en paramètre
     * en temps que background
     *
     * @param filename
     */
    int loadBoardPic(QString filename);

    void keyPressEvent(QKeyEvent *event);
    void wheelEvent(QWheelEvent *event);
    void drawBackground(QPainter *painter, const QRectF &rect);

    void scaleView(qreal scaleFactor);

private:


};


#endif
